package test {

import flash.geom.Point;
import flash.utils.IDataInput;
import flash.utils.IDataOutput;
import flash.utils.IExternalizable;
import flash.net.registerClassAlias;

// Oh fuck, this doesn't work serverside

registerClassAlias("Data", Data);
public class Data implements IExternalizable
{
    public var number :int;
    public var string :String;

    public function writeExternal (out :IDataOutput) :void
    {
        out.writeInt(number);
        out.writeUTF(string);
    }

    public function readExternal (input :IDataInput) :void
    {
        number = input.readInt();
        string = input.readUTF();
    }
}

}
